package skins
{
	import flash.display.Graphics;
	
	import flashx.textLayout.*;
	import flashx.textLayout.formats.BackgroundColor;
	import flashx.textLayout.formats.TextDecoration;
	
	import mx.skins.Border;
	import mx.skins.ProgrammaticSkin;
	import mx.skins.RectangularBorder;
	import mx.skins.halo.*;
	import mx.states.SetStyle;
	import mx.styles.StyleManager;
	import mx.utils.ColorUtil;
	
	public class MenuBarItemSkin extends Border
	{
		public var backgroundColor:Number;
		public var fontSize:Number;
		public var color:Number;
		public function MenuBarItemSkin()
		{
			super();
			backgroundColor=getStyle("backgroundColor");			
			color=getStyle("color");
		}
		override protected function updateDisplayList(w:Number,h:Number):void
		{
			switch (name) {
				case "itemSkin":
					//lineThickness = 4;
					fontSize=48;
					backgroundColor = 0xFFFFFF;
					color=0x0000FF;
					break;
				case "itemOverSkin":
					//lineThickness = 4;
					
					backgroundColor = 0xFF0000;
					break;
				case "downSkin":
					//lineThickness = 2;
					backgroundColor = 0xFFFFFF;
					break;
				case "disabledSkin":
					//lineThickness = 2;
					backgroundColor = 0xCCCCCC;
					break;
				default:
					backgroundColor = 0x00FF00;
					break;
			}
						
			
		}
	}
}